<?php
@session_start();
$link=mysql_connect("localhost", "root", "");

if(!$link){
echo "not connected to database";
}

mysql_select_db("techworks");

$id = $_SESSION['pid2'];
$missionStatment= $_POST['mission-statement'];
$principalMem= $_POST['principal-members'];
$legalStructure= $_POST['legal-structure'];



$q= mysql_query ("UPDATE `tw_company_desc` SET `mission-statement` = '$missionStatment', `principal-members` = '$principalMem', `legal-structure` = '$legalStructure' where `plan_id`='$id'");

if($q){
		
	$_SESSION['ad']= "success";
	header("location: ../incubatee/plan_id.php#tab_tab3 ");			
}else {
	echo  mysql_error();
	//header("location: ../incubatee/edit_plan.php#tab_tab3");
	
	
}

?>



